import request from '../../utils/request'

/**
 * 获取商品详情
 */
export const getGoodsDetailAPI = (goodsId) => {
  return request.get('/goods/detail', {
    goodsId,
  })
}

/**
 * 获取商品列表(搜索结果)
 */
export const getGoodsListAPI = (data) => {
  return request.get('/goods/list', data)
}
